500 |
How can I select a column
public void init() { COM com_Items,com_Items1; anytype var_Items,var_Items1; ; super(); exg2antt1.MarkSearchColumn(false); exg2antt1.SingleSel(false); exg2antt1.FullRowSelect(1/*exRectSel*/); COM::createFromVariant(exg2antt1.Columns().Add("Column1")).Selected(true); exg2antt1.Columns().Add("Column2"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellValue(com_Items.AddItem("One"),COMVariant::createFromInt(1),"One"); var_Items1 = exg2antt1.Items(); com_Items1 = var_Items1; com_Items1.CellValue(com_Items1.AddItem("Two"),COMVariant::createFromInt(1),"Two"); exg2antt1.Items().SelectAll(); } |
499 |
How can I avoid focusing a new cell, when user presses an arrow, page, home or end key, while the editor is opened
public void init() { COM com_Editor,com_Items,com_Items1; anytype var_Editor,var_Items,var_Items1; ; super(); exg2antt1.DefaultEditorOption(20/*exLeftArrow*/,COMVariant::createFromInt(0)); exg2antt1.DefaultEditorOption(21/*exRightArrow*/,COMVariant::createFromInt(0)); exg2antt1.DefaultEditorOption(22/*exUpArrow*/,COMVariant::createFromInt(0)); exg2antt1.DefaultEditorOption(23/*exDownArrow*/,COMVariant::createFromInt(0)); exg2antt1.DefaultEditorOption(24/*exHomeKey*/,COMVariant::createFromInt(0)); exg2antt1.DefaultEditorOption(25/*exEndKey*/,COMVariant::createFromInt(0)); exg2antt1.DefaultEditorOption(26/*exPageUpKey*/,COMVariant::createFromInt(0)); exg2antt1.DefaultEditorOption(27/*exPageDownKey*/,COMVariant::createFromInt(0)); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Edit"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Edit"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellValue(com_Items.AddItem(COMVariant::createFromInt(0)),COMVariant::createFromInt(1),COMVariant::createFromInt(1)); var_Items1 = exg2antt1.Items(); com_Items1 = var_Items1; com_Items1.CellValue(com_Items1.AddItem(COMVariant::createFromInt(2)),COMVariant::createFromInt(1),COMVariant::createFromInt(3)); } |
498 |
How can I expand predefined items in a drop down list editor as I type
public void init() { COM com_Column,com_Editor,com_Items; anytype var_Column,var_Editor,var_Items; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")); com_Column = var_Column; com_Column.Def(17/*exCellValueFormat*/,COMVariant::createFromInt(1)); var_Editor = com_Column.Editor(); com_Editor = var_Editor; com_Editor.Option(38/*exExpandOnSearch*/,COMVariant::createFromBoolean(true)); com_Editor.EditType(3/*DropDownListType*/); com_Editor.DropDownAutoWidth(0/*exDropDownEditorWidth*/); com_Editor.AddItem(1,"<b>CObject</b> class",COMVariant::createFromInt(1)); com_Editor.InsertItem(2,"<b>CCmdTarget</b> class",COMVariant::createFromInt(2),COMVariant::createFromInt(1)); com_Editor.InsertItem(3,"<b>CWnd</b> class",COMVariant::createFromInt(3),COMVariant::createFromInt(2)); com_Editor.InsertItem(6,"<bgcolor=10A0E0><fgcolor=F0F0F0>S y n c</fgcolor>",COMVariant::createFromInt(1),COMVariant::createFromInt(1)); com_Editor.AddItem(4,"Exceptions",COMVariant::createFromInt(1)); com_Editor.InsertItem(7,"<b>System</b> Exceptions",COMVariant::createFromInt(2),COMVariant::createFromInt(4)); com_Editor.AddItem(5,"File Services",COMVariant::createFromInt(2)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
497 |
How can I add an extra button to a date picker editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); exg2antt1.DefaultItemHeight(20); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Date")).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); com_Editor.AddButton("B1",COMVariant::createFromInt(2),COMVariant::createFromInt(1),"This is a bit of text that's shown when the cursor hovers the button B1"); com_Editor.ButtonWidth(20); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.AddItem(COMVariant::createFromInt(1)); } |
496 |
How can I add an extra button to a spin editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); exg2antt1.DefaultItemHeight(20); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Date")).Editor(); com_Editor = var_Editor; com_Editor.EditType(4/*SpinType*/); com_Editor.AddButton("B1",COMVariant::createFromInt(2),COMVariant::createFromInt(1),"This is a bit of text that's shown when the cursor hovers the button B1"); com_Editor.ButtonWidth(20); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.AddItem(COMVariant::createFromInt(1)); } |
495 |
How can I remove or delete the buttons in the editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.AddButton("B1",COMVariant::createFromInt(1),COMVariant::createFromInt(0),"This is a bit of text that's shown when the cursor hovers the button B1"); com_Editor.AddButton("B3",COMVariant::createFromInt(2),COMVariant::createFromInt(1),"This is a bit of text that's shown when the cursor hovers the button B3"); com_Editor.AddButton("B4",COMVariant::createFromInt(1),COMVariant::createFromInt(1),"This is a bit of text that's shown when the cursor hovers the button B4"); com_Editor.RemoveButton("B1"); com_Editor.ButtonWidth(20); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("Text 1"); com_Items.AddItem("Text 2"); } |
494 |
How can I hide the buttons in the editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); exg2antt1.DefaultItemHeight(24); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.AddButton("B1",COMVariant::createFromInt(1),COMVariant::createFromInt(0),"This is a bit of text that's shown when the cursor hovers the button B1"); com_Editor.AddButton("B3",COMVariant::createFromInt(2),COMVariant::createFromInt(1),"This is a bit of text that's shown when the cursor hovers the button B3"); com_Editor.AddButton("B4",COMVariant::createFromInt(1),COMVariant::createFromInt(1),"This is a bit of text that's shown when the cursor hovers the button B4"); com_Editor.ButtonWidth(0); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("Text 1"); com_Items.AddItem("Text 2"); } |
493 |
How can I change the width of the buttons in the editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); exg2antt1.DefaultItemHeight(24); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.AddButton("B1",COMVariant::createFromInt(1),COMVariant::createFromInt(0),"This is a bit of text that's shown when the cursor hovers the button B1"); com_Editor.AddButton("B3",COMVariant::createFromInt(2),COMVariant::createFromInt(1),"This is a bit of text that's shown when the cursor hovers the button B3"); com_Editor.AddButton("B4",COMVariant::createFromInt(1),COMVariant::createFromInt(1),"This is a bit of text that's shown when the cursor hovers the button B4"); com_Editor.ButtonWidth(24); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("Text 1"); com_Items.AddItem("Text 2"); } |
492 |
How can I add extra buttons to an editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.AddButton("B1",COMVariant::createFromInt(1),COMVariant::createFromInt(0),"This is a bit of text that's shown when the cursor hovers the button B1"); com_Editor.AddButton("B2",COMVariant::createFromInt(2),COMVariant::createFromInt(0),"This is a bit of text that's shown when the cursor hovers the button B2"); com_Editor.AddButton("B3",COMVariant::createFromInt(3),COMVariant::createFromInt(1),"This is a bit of text that's shown when the cursor hovers the button B3"); com_Editor.AddButton("B4",COMVariant::createFromInt(1),COMVariant::createFromInt(1),"This is a bit of text that's shown when the cursor hovers the button B4"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("Text 1"); com_Items.AddItem("Text 2"); } |
491 |
is there any function to specify the number of rows / items being visible in a drop down list editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")).Editor(); com_Editor = var_Editor; com_Editor.EditType(3/*DropDownListType*/); com_Editor.AddItem(1,"First item"); com_Editor.AddItem(2,"Second item"); com_Editor.AddItem(3,"Third item"); com_Editor.DropDownRows(1); com_Editor.PopupAppearance(1/*FlatApp*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
490 |
How can I change the border for a drop down editor
public void init() { COM com_Editor,com_Editor1,com_Items; anytype var_Editor,var_Editor1,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Date")).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); com_Editor.PopupAppearance(1/*FlatApp*/); exg2antt1.Items().AddItem("Today"); var_Items = exg2antt1.Items(); com_Items = var_Items; var_Editor1 = COM::createFromObject(com_Items.CellEditor(com_Items.AddItem("Today"),COMVariant::createFromInt(0))); com_Editor1 = var_Editor1; com_Editor1.EditType(7/*DateType*/); } |
489 |
How can I remove a predefined item in a drop down editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Color")).Editor(); com_Editor = var_Editor; com_Editor.EditType(17/*ColorListType*/); com_Editor.Option(4/*exColorListShowName*/,COMVariant::createFromBoolean(true)); com_Editor.RemoveItem(255); exg2antt1.Items().AddItem(COMVariant::createFromInt(255)); exg2antt1.Items().AddItem(COMVariant::createFromInt(65280)); } |
488 |
How can I remove or clear all predefined items in a drop down editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Color")).Editor(); com_Editor = var_Editor; com_Editor.EditType(17/*ColorListType*/); com_Editor.ClearItems(); com_Editor.AddItem(255,"Red Color"); exg2antt1.Items().AddItem(COMVariant::createFromInt(255)); } |
487 |
How can I center the predefined items in a drop down editor editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")).Editor(); com_Editor = var_Editor; com_Editor.EditType(3/*DropDownListType*/); com_Editor.AddItem(1,"First item"); com_Editor.AddItem(2,"Second item"); com_Editor.AddItem(3,"Third item"); com_Editor.DropDownAlignment(1/*CenterAlignment*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
486 |
How can I right align the items in a drop down editor editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")).Editor(); com_Editor = var_Editor; com_Editor.EditType(3/*DropDownListType*/); com_Editor.AddItem(1,"First item"); com_Editor.AddItem(2,"Second item"); com_Editor.AddItem(3,"Third item"); com_Editor.DropDownAlignment(2/*RightAlignment*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
485 |
How can I specify the width of the drop down editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")).Editor(); com_Editor = var_Editor; com_Editor.DropDownAutoWidth(0/*exDropDownEditorWidth*/); com_Editor.DropDownMinWidth(385); com_Editor.EditType(17/*ColorListType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(255)); com_Items.AddItem(COMVariant::createFromInt(65280)); } |
484 |
How can hide the drop down button for an editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")).Editor(); com_Editor = var_Editor; com_Editor.DropDownVisible(false); com_Editor.EditType(17/*ColorListType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(255)); com_Items.AddItem(COMVariant::createFromInt(65280)); } |
483 |
How can assign a tooltip to a drop down list editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")).Editor(); com_Editor = var_Editor; com_Editor.EditType(3/*DropDownListType*/); com_Editor.AddItem(1,"First item"); com_Editor.AddItem(2,"Second item"); com_Editor.AddItem(3,"Third item"); com_Editor.ItemToolTip(COMVariant::createFromInt(1),"This is a tooltip that shows when user hovers the <b>first</b> item"); com_Editor.ItemToolTip(COMVariant::createFromInt(2),"This is a tooltip that shows when user hovers the <b>second</b> item"); com_Editor.ItemToolTip(COMVariant::createFromInt(3),"This is a tooltip that shows when user hovers the <b>third</b> item"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
482 |
How can I lock, disable make read only an editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")).Editor(); com_Editor = var_Editor; com_Editor.Locked(true); com_Editor.EditType(3/*DropDownListType*/); com_Editor.AddItem(1,"First item"); com_Editor.AddItem(2,"Second item"); com_Editor.AddItem(3,"Third item"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
481 |
How can I sort the items in a drop down list editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")).Editor(); com_Editor = var_Editor; com_Editor.EditType(3/*DropDownListType*/); com_Editor.AddItem(1,"Second item"); com_Editor.AddItem(2,"First item"); com_Editor.AddItem(3,"Third item"); com_Editor.SortItems(COMVariant::createFromBoolean(true)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
480 |
How can I expand an item in the tree or a hierarchy of a drop down editor
public void init() { COM com_Column,com_Editor,com_Items; anytype var_Column,var_Editor,var_Items; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")); com_Column = var_Column; com_Column.Def(17/*exCellValueFormat*/,COMVariant::createFromInt(1)); var_Editor = com_Column.Editor(); com_Editor = var_Editor; com_Editor.EditType(3/*DropDownListType*/); com_Editor.DropDownAutoWidth(0/*exDropDownEditorWidth*/); com_Editor.AddItem(1,"<b>CObject</b> class",COMVariant::createFromInt(1)); com_Editor.InsertItem(2,"<b>CCmdTarget</b> class",COMVariant::createFromInt(2),COMVariant::createFromInt(1)); com_Editor.InsertItem(3,"<b>CWnd</b> class",COMVariant::createFromInt(3),COMVariant::createFromInt(2)); com_Editor.InsertItem(6,"<bgcolor=10A0E0><fgcolor=F0F0F0>S y n c</fgcolor>",COMVariant::createFromInt(1),COMVariant::createFromInt(1)); com_Editor.AddItem(4,"Exceptions",COMVariant::createFromInt(1)); com_Editor.InsertItem(7,"<b>System</b> Exceptions",COMVariant::createFromInt(2),COMVariant::createFromInt(4)); com_Editor.AddItem(5,"File Services",COMVariant::createFromInt(2)); com_Editor.ExpandItem(COMVariant::createFromInt(1),true); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
479 |
How can I display a tree or a hierarchy in a drop down editor
public void init() { COM com_Column,com_Editor,com_Items; anytype var_Column,var_Editor,var_Items; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")); com_Column = var_Column; com_Column.Def(17/*exCellValueFormat*/,COMVariant::createFromInt(1)); var_Editor = com_Column.Editor(); com_Editor = var_Editor; com_Editor.EditType(3/*DropDownListType*/); com_Editor.DropDownAutoWidth(0/*exDropDownEditorWidth*/); com_Editor.AddItem(1,"<b>CObject</b> class",COMVariant::createFromInt(1)); com_Editor.InsertItem(2,"<b>CCmdTarget</b> class",COMVariant::createFromInt(2),COMVariant::createFromInt(1)); com_Editor.InsertItem(3,"<b>CWnd</b> class",COMVariant::createFromInt(3),COMVariant::createFromInt(2)); com_Editor.InsertItem(6,"<bgcolor=10A0E0><fgcolor=F0F0F0>S y n c</fgcolor>",COMVariant::createFromInt(1),COMVariant::createFromInt(1)); com_Editor.AddItem(4,"Exceptions",COMVariant::createFromInt(1)); com_Editor.InsertItem(7,"<b>System</b> Exceptions",COMVariant::createFromInt(2),COMVariant::createFromInt(4)); com_Editor.AddItem(5,"File Services",COMVariant::createFromInt(2)); com_Editor.ExpandAll(); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
478 |
How can I look for items that includes the typed characters in a drop down list editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")).Editor(); com_Editor = var_Editor; com_Editor.Option(39/*exAutoSearch*/,COMVariant::createFromInt(1)); com_Editor.EditType(3/*DropDownListType*/); com_Editor.AddItem(1,"First item"); com_Editor.AddItem(2,"Second item"); com_Editor.AddItem(3,"Third item"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
477 |
How can I keep the selection background color while editor is visible
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); exg2antt1.SelBackColor(WinApi::RGB2int(255,0,0)); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")).Editor(); com_Editor = var_Editor; com_Editor.Option(45/*exKeepSelBackColor*/,COMVariant::createFromBoolean(true)); com_Editor.EditType(3/*DropDownListType*/); com_Editor.AddItem(1,"First item"); com_Editor.AddItem(2,"Second item"); com_Editor.AddItem(3,"Third item"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
476 |
How can I select from a drop down list the editor, when the user starts typing in the editor, while it is closed and focused
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")).Editor(); com_Editor = var_Editor; com_Editor.Option(37/*exAutoDropDownList*/,COMVariant::createFromInt(1)); com_Editor.EditType(3/*DropDownListType*/); com_Editor.AddItem(1,"First item",COMVariant::createFromInt(1)); com_Editor.AddItem(2,"Second item",COMVariant::createFromInt(3)); com_Editor.AddItem(3,"Third item",COMVariant::createFromInt(2)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
475 |
How can I automatically drop down the list editor, when the user starts typing in the editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")).Editor(); com_Editor = var_Editor; com_Editor.Option(37/*exAutoDropDownList*/,COMVariant::createFromInt(-1)); com_Editor.EditType(3/*DropDownListType*/); com_Editor.AddItem(1,"First item",COMVariant::createFromInt(1)); com_Editor.AddItem(2,"Second item",COMVariant::createFromInt(3)); com_Editor.AddItem(3,"Third item",COMVariant::createFromInt(2)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
474 |
How can I add a Font editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Font"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(10/*FontType*/); exg2antt1.Items().AddItem("Tahoma"); } |
473 |
How can I change the visual appearance for the buttons in the calculator editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Slider")).Editor(); com_Editor = var_Editor; com_Editor.EditType(21/*CalculatorType*/); com_Editor.Option(105/*exCalcPictureUp*/,COM::createFromVariant(exg2antt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"))); com_Editor.Option(106/*exCalcPictureDown*/,COM::createFromVariant(exg2antt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\auction.gif`)"))); exg2antt1.Items().AddItem(COMVariant::createFromInt(10)); } |
472 |
How can I customize the caption of buttons in the calculator editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Slider")).Editor(); com_Editor = var_Editor; com_Editor.EditType(21/*CalculatorType*/); com_Editor.Option(104/*exCalcButtons*/,"0;1;2;3;4;5;6;7;8;9;<b>+</b>;<fgcolor=FF0000>=</fgcolor>"); exg2antt1.Items().AddItem(COMVariant::createFromInt(10)); } |
471 |
How can I customize the caption of buttons in the calculator editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Slider")).Editor(); com_Editor = var_Editor; com_Editor.EditType(21/*CalculatorType*/); com_Editor.Option(104/*exCalcButtons*/,"0;1;2;3;4;5;6;7;8;9"); exg2antt1.Items().AddItem(COMVariant::createFromInt(10)); } |
470 |
How can I specify the width and height of the buttons in the calculator editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Slider")).Editor(); com_Editor = var_Editor; com_Editor.EditType(21/*CalculatorType*/); com_Editor.Option(102/*exCalcButtonWidth*/,COMVariant::createFromInt(32)); com_Editor.Option(103/*exCalcButtonHeight*/,COMVariant::createFromInt(32)); exg2antt1.Items().AddItem(COMVariant::createFromInt(10)); } |
469 |
How can I change the "Cannot divide by zero" message that shows in the calculator editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Slider")).Editor(); com_Editor = var_Editor; com_Editor.EditType(21/*CalculatorType*/); com_Editor.Option(101/*exCalcCannotDivideByZero*/,"Divizion by zero"); exg2antt1.Items().AddItem(COMVariant::createFromInt(10)); } |
468 |
How can I enable or disable executing operations while the calculator editor is focused and closed
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Slider")).Editor(); com_Editor = var_Editor; com_Editor.EditType(21/*CalculatorType*/); com_Editor.Option(100/*exCalcExecuteKeys*/,COMVariant::createFromBoolean(false)); exg2antt1.Items().AddItem(COMVariant::createFromInt(10)); } |
467 |
How can I add a calculator editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Slider"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(21/*CalculatorType*/); exg2antt1.Items().AddItem(COMVariant::createFromInt(10)); } |
466 |
How can I edit a number between a range or interval
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Slider")).Editor(); com_Editor = var_Editor; com_Editor.EditType(20/*SliderType*/); com_Editor.Numeric(-1/*exInteger*/); com_Editor.Option(40/*exSpinStep*/,COMVariant::createFromInt(0)); com_Editor.Option(41/*exSliderWidth*/,COMVariant::createFromInt(0)); com_Editor.Option(43/*exSliderMin*/,COMVariant::createFromInt(5)); com_Editor.Option(44/*exSliderMax*/,COMVariant::createFromInt(15)); exg2antt1.Items().AddItem(COMVariant::createFromInt(10)); } |
465 |
How can I hide or show the spin in the slider or track bar editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Slider")).Editor(); com_Editor = var_Editor; com_Editor.EditType(20/*SliderType*/); com_Editor.Option(40/*exSpinStep*/,COMVariant::createFromInt(0)); exg2antt1.Items().AddItem(COMVariant::createFromInt(10)); } |
464 |
How can I add a slider or track bar editor, with a fixed size
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Slider")).Editor(); com_Editor = var_Editor; com_Editor.EditType(20/*SliderType*/); com_Editor.Option(41/*exSliderWidth*/,COMVariant::createFromInt(64)); exg2antt1.Items().AddItem(COMVariant::createFromInt(10)); } |
463 |
How can I add a slider or track bar editor, so it covers half of the cell
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Slider")).Editor(); com_Editor = var_Editor; com_Editor.EditType(20/*SliderType*/); com_Editor.Option(41/*exSliderWidth*/,COMVariant::createFromInt(-50)); exg2antt1.Items().AddItem(COMVariant::createFromInt(10)); } |
462 |
How can I add a slider or track bar editor, so it covers the full cell
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Slider")).Editor(); com_Editor = var_Editor; com_Editor.EditType(20/*SliderType*/); com_Editor.Option(41/*exSliderWidth*/,COMVariant::createFromInt(-100)); exg2antt1.Items().AddItem(COMVariant::createFromInt(10)); } |
461 |
How can I add a slider or track bar editor within a range or interval of numbers
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Spin from 5 to 15")).Editor(); com_Editor = var_Editor; com_Editor.EditType(20/*SliderType*/); com_Editor.Numeric(-1/*exInteger*/); com_Editor.Option(43/*exSliderMin*/,COMVariant::createFromInt(5)); com_Editor.Option(44/*exSliderMax*/,COMVariant::createFromInt(15)); exg2antt1.Items().AddItem(COMVariant::createFromInt(10)); } |
460 |
How can I add a slider or track bar editor within a range or interval of float numbers
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Spin from 5 to 15")).Editor(); com_Editor = var_Editor; com_Editor.EditType(20/*SliderType*/); com_Editor.Numeric(1/*exFloat*/); com_Editor.Option(43/*exSliderMin*/,COMVariant::createFromInt(0)); com_Editor.Option(44/*exSliderMax*/,COMVariant::createFromInt(1)); com_Editor.Option(40/*exSpinStep*/,"0.01"); com_Editor.Option(42/*exSliderStep*/,"0.01"); exg2antt1.Items().AddItem("0.3"); } |
459 |
How can I add a spin editor within a range or interval of float numbers
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Spin from 5 to 15")).Editor(); com_Editor = var_Editor; com_Editor.EditType(20/*SliderType*/); com_Editor.Numeric(1/*exFloat*/); com_Editor.Option(41/*exSliderWidth*/,COMVariant::createFromInt(0)); com_Editor.Option(43/*exSliderMin*/,COMVariant::createFromInt(0)); com_Editor.Option(44/*exSliderMax*/,COMVariant::createFromInt(1)); com_Editor.Option(40/*exSpinStep*/,"0.01"); exg2antt1.Items().AddItem("0.3"); } |
458 |
How can I add a spin editor within a range or interval of numbers
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Spin from 5 to 15")).Editor(); com_Editor = var_Editor; com_Editor.EditType(20/*SliderType*/); com_Editor.Numeric(-1/*exInteger*/); com_Editor.Option(41/*exSliderWidth*/,COMVariant::createFromInt(0)); com_Editor.Option(43/*exSliderMin*/,COMVariant::createFromInt(5)); com_Editor.Option(44/*exSliderMax*/,COMVariant::createFromInt(15)); exg2antt1.Items().AddItem(COMVariant::createFromInt(10)); } |
457 |
How can I add a slider or track bar editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Slider"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(20/*SliderType*/); exg2antt1.Items().AddItem(COMVariant::createFromInt(10)); } |
456 |
I have check box column, but the check-boxes looks disabled. What can I do
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Check")).Editor(); com_Editor = var_Editor; com_Editor.EditType(19/*CheckValueType*/); com_Editor.Option(17/*exCheckValue2*/,COMVariant::createFromInt(1)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromBoolean(false)); com_Items.AddItem(COMVariant::createFromBoolean(true)); com_Items.AddItem(COMVariant::createFromBoolean(false)); } |
455 |
How do I add check box column, so the cell value is changed as I click the cells
public void init() { COM com_Column,com_Editor,com_Items; anytype var_Column,var_Editor,var_Items; ; super(); exg2antt1.MarkSearchColumn(false); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("C")); com_Column = var_Column; com_Column.Width(18); com_Column.AllowSizing(false); var_Editor = com_Column.Editor(); com_Editor = var_Editor; com_Editor.EditType(19/*CheckValueType*/); com_Editor.Option(17/*exCheckValue2*/,COMVariant::createFromInt(1)); exg2antt1.Columns().Add("Text"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellValue(com_Items.AddItem(COMVariant::createFromBoolean(false)),COMVariant::createFromInt(1),"Check 1"); com_Items.CellValue(com_Items.AddItem(COMVariant::createFromBoolean(true)),COMVariant::createFromInt(1),"Check 2"); com_Items.CellValue(com_Items.AddItem(COMVariant::createFromBoolean(false)),COMVariant::createFromInt(1),"Check 3"); } |
454 |
How do I add check box column, so the cell value is changed as I click the cells
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Check"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(19/*CheckValueType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromBoolean(false)); com_Items.AddItem(COMVariant::createFromBoolean(true)); com_Items.AddItem(COMVariant::createFromBoolean(false)); } |
453 |
How do I disable adding new lines using the ENTER key in a memo or a multiple lines edit control
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; str var_s,var_s1; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(18/*MemoDropDownType*/); com_Editor.Option(9/*exMemoDropDownAcceptReturn*/,COMVariant::createFromBoolean(false)); var_Items = exg2antt1.Items(); com_Items = var_Items; var_s = "This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the"; var_s = var_s + " line, and get it displayed on multiple lines."; var_s1 = "This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the"; var_s1 = var_s1 + " line, and get it displayed on multiple lines."; com_Items.CellSingleLine(com_Items.AddItem(COMVariant::createFromStr(var_s)),COMVariant::createFromInt(0),false); } |
452 |
How do I add a vertical scroll bar for a memo or a multiple lines edit control
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; str var_s,var_s1; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(18/*MemoDropDownType*/); com_Editor.Option(2/*exMemoVScrollBar*/,COMVariant::createFromBoolean(true)); var_Items = exg2antt1.Items(); com_Items = var_Items; var_s = "This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the"; var_s = var_s + " line, and get it displayed on multiple lines."; var_s1 = "This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the"; var_s1 = var_s1 + " line, and get it displayed on multiple lines."; com_Items.CellSingleLine(com_Items.AddItem(COMVariant::createFromStr(var_s)),COMVariant::createFromInt(0),false); } |
451 |
How do I add a horizontal scroll bar for a memo or a multiple lines edit control
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; str var_s,var_s1; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(18/*MemoDropDownType*/); com_Editor.Option(1/*exMemoHScrollBar*/,COMVariant::createFromBoolean(true)); var_Items = exg2antt1.Items(); com_Items = var_Items; var_s = "This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the"; var_s = var_s + " line, and get it displayed on multiple lines."; var_s1 = "This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the"; var_s1 = var_s1 + " line, and get it displayed on multiple lines."; com_Items.CellSingleLine(com_Items.AddItem(COMVariant::createFromStr(var_s)),COMVariant::createFromInt(0),false); } |
450 |
How can I specify the width or the height for a drop down memo or a multiple lines edit control
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(18/*MemoDropDownType*/); com_Editor.Option(7/*exMemoDropDownWidth*/,COMVariant::createFromInt(256)); com_Editor.Option(8/*exMemoDropDownHeight*/,COMVariant::createFromInt(64)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellSingleLine(com_Items.AddItem("This is a long text that should break the line, and get it displayed on multiple lines."),COMVariant::createFromInt(0),false); } |
449 |
How do I add a drop down memo or a multiple lines edit control
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Edit"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(18/*MemoDropDownType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellSingleLine(com_Items.AddItem("This is a long text that should break the line, and get it displayed on multiple lines."),COMVariant::createFromInt(0),false); } |
448 |
How do I add a color list editor with my own or custom colors
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Color")).Editor(); com_Editor = var_Editor; com_Editor.EditType(17/*ColorListType*/); com_Editor.Option(4/*exColorListShowName*/,COMVariant::createFromBoolean(true)); com_Editor.ClearItems(); com_Editor.AddItem(255,"Red Color"); com_Editor.AddItem(16711680,"Blue Color"); com_Editor.AddItem(65280,"Green Color"); exg2antt1.Items().AddItem(COMVariant::createFromInt(255)); } |
447 |
How do I add a color list editor with my own or custom colors
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Color")).Editor(); com_Editor = var_Editor; com_Editor.EditType(17/*ColorListType*/); com_Editor.ClearItems(); com_Editor.AddItem(255,"Red Color"); com_Editor.AddItem(16711680,"Blue Color"); com_Editor.AddItem(65280,"Green Color"); exg2antt1.Items().AddItem(COMVariant::createFromInt(255)); } |
446 |
How can I show the color's name in a color list editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Color")).Editor(); com_Editor = var_Editor; com_Editor.EditType(17/*ColorListType*/); com_Editor.Option(4/*exColorListShowName*/,COMVariant::createFromBoolean(true)); exg2antt1.Items().AddItem(COMVariant::createFromInt(255)); } |
445 |
How do I add a color list editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Color"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(17/*ColorListType*/); exg2antt1.Items().AddItem(COMVariant::createFromInt(255)); } |
444 |
How can I access my own custom or ActiveX editor
public void init() { COM com_Calendar,com_Editor,com_Items; anytype var_Calendar,var_Editor,var_Items; ; super(); exg2antt1.DrawGridLines(-1/*exAllLines*/); exg2antt1.DefaultItemHeight(128); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")).Editor(); com_Editor = var_Editor; com_Editor.EditType(16/*UserEditorType*/); com_Editor.UserEditor("MSCAL.Calendar",""); // Add 'Microsoft Calendar Control 2007(MSCAL.OCX)' reference to your project. var_Calendar = com_Editor.UserEditorObject(); com_Calendar = var_Calendar; com_Calendar.BackColor(WinApi::RGB2int(255,255,255)); com_Calendar.GridCellEffect(0); com_Calendar.ShowTitle(false); com_Calendar.ShowDateSelectors(false); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("MSCal.Calendar"); com_Items.AddItem("MSCal.Calendar"); } |
443 |
How can I add my own custom or ActiveX editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); exg2antt1.DrawGridLines(-1/*exAllLines*/); exg2antt1.DefaultItemHeight(128); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")).Editor(); com_Editor = var_Editor; com_Editor.EditType(16/*UserEditorType*/); com_Editor.UserEditor("MSCAL.Calendar",""); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("MSCal.Calendar"); com_Items.AddItem("MSCal.Calendar"); } |
442 |
How can I add a hyperlink editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Shell.Execute"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(15/*LinkEditType*/); exg2antt1.Items().AddItem("http://www.exontrol.com"); exg2antt1.Items().AddItem("c:\\"); } |
441 |
How can I add a drop down editor, that allows only predefined values, but still being able to edit and select
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")).Editor(); com_Editor = var_Editor; com_Editor.EditType(14/*PickEditType*/); com_Editor.AddItem(1,"The first item",COMVariant::createFromInt(1)); com_Editor.AddItem(2,"The second item",COMVariant::createFromInt(3)); com_Editor.AddItem(3,"The third item",COMVariant::createFromInt(2)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("The first item"); com_Items.AddItem("The third item"); } |
440 |
How can I show or hide the rectangle arround progress bar editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); exg2antt1.SelForeColor(WinApi::RGB2int(0,0,0)); exg2antt1.SelBackColor(WinApi::RGB2int(128,255,255)); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Progress")).Editor(); com_Editor = var_Editor; com_Editor.EditType(13/*ProgressBarType*/); com_Editor.Option(13/*exProgressBarMarkTicker*/,COMVariant::createFromBoolean(false)); exg2antt1.Items().AddItem(COMVariant::createFromInt(33)); } |
439 |
How can I hide the caption / percent in the progress bar editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); exg2antt1.SelForeColor(WinApi::RGB2int(0,0,0)); exg2antt1.SelBackColor(WinApi::RGB2int(128,255,255)); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Progress")).Editor(); com_Editor = var_Editor; com_Editor.EditType(13/*ProgressBarType*/); com_Editor.Option(12/*exProgressBarAlignment*/,COMVariant::createFromInt(-1)); exg2antt1.Items().AddItem(COMVariant::createFromInt(33)); } |
438 |
How can I align the caption in the center of the progress bar editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); exg2antt1.SelForeColor(WinApi::RGB2int(0,0,0)); exg2antt1.SelBackColor(WinApi::RGB2int(128,255,255)); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Progress")).Editor(); com_Editor = var_Editor; com_Editor.EditType(13/*ProgressBarType*/); com_Editor.Option(12/*exProgressBarAlignment*/,COMVariant::createFromInt(1)); exg2antt1.Items().AddItem(COMVariant::createFromInt(33)); } |
437 |
How can I align the caption to the right in the progress bar editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); exg2antt1.SelForeColor(WinApi::RGB2int(0,0,0)); exg2antt1.SelBackColor(WinApi::RGB2int(128,255,255)); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Progress")).Editor(); com_Editor = var_Editor; com_Editor.EditType(13/*ProgressBarType*/); com_Editor.Option(12/*exProgressBarAlignment*/,COMVariant::createFromInt(2)); exg2antt1.Items().AddItem(COMVariant::createFromInt(33)); } |
436 |
How can I change the background color for a progress bar editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); exg2antt1.SelForeColor(WinApi::RGB2int(0,0,0)); exg2antt1.SelBackColor(WinApi::RGB2int(128,255,255)); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Progress")).Editor(); com_Editor = var_Editor; com_Editor.EditType(13/*ProgressBarType*/); com_Editor.Option(11/*exProgressBarBackColor*/,COMVariant::createFromInt(255)); exg2antt1.Items().AddItem(COMVariant::createFromInt(33)); } |
435 |
How can I add a progress bar editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); exg2antt1.SelForeColor(WinApi::RGB2int(0,0,0)); exg2antt1.SelBackColor(WinApi::RGB2int(128,255,255)); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Progress"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(13/*ProgressBarType*/); exg2antt1.Items().AddItem(COMVariant::createFromInt(33)); } |
434 |
How can I add a button editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Button"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(12/*ButtonType*/); exg2antt1.Items().AddItem("Just a text"); } |
433 |
How can I show or hide the type of the OLE Object for Photo or a Picture editor
public void init() { COM com_Column,com_Editor,com_Items; anytype var_Column,var_Editor,var_Items; int h; ; super(); exg2antt1.ColumnAutoResize(false); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Photo")); com_Column = var_Column; com_Column.Width(74); var_Editor = com_Column.Editor(); com_Editor = var_Editor; com_Editor.EditType(11/*PictureType*/); com_Editor.Option(52/*exShowPictureType*/,COMVariant::createFromBoolean(false)); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem(); com_Items.CellValue(h,COMVariant::createFromInt(0),COM::createFromVariant(exg2antt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\sample.bmp`)"))); com_Items.ItemHeight(h,64); } |
432 |
How can I add a Photo or a Picture editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; int h; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Photo"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(11/*PictureType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem(); com_Items.CellValue(h,COMVariant::createFromInt(0),COM::createFromVariant(exg2antt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\sample.bmp`)"))); com_Items.ItemHeight(h,64); } |
431 |
How can I hide or show the "System" page in the color editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Color")).Editor(); com_Editor = var_Editor; com_Editor.EditType(9/*ColorType*/); com_Editor.Option(6/*exColorShowSystem*/,COMVariant::createFromBoolean(false)); exg2antt1.Items().AddItem(COMVariant::createFromInt(255)); } |
430 |
How can I hide or show the "Palette" page in the color editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Color")).Editor(); com_Editor = var_Editor; com_Editor.EditType(9/*ColorType*/); com_Editor.Option(5/*exColorShowPalette*/,COMVariant::createFromBoolean(false)); exg2antt1.Items().AddItem(COMVariant::createFromInt(255)); } |
429 |
How do I add a color editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Color"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(9/*ColorType*/); exg2antt1.Items().AddItem(COMVariant::createFromInt(255)); } |
428 |
How do I change the masking character
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Mask")).Editor(); com_Editor = var_Editor; com_Editor.EditType(8/*MaskType*/); com_Editor.Mask("###"); com_Editor.MaskChar(48); exg2antt1.Items().AddItem(""); } |
427 |
How do I mask an IP
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("IP")).Editor(); com_Editor = var_Editor; com_Editor.EditType(8/*MaskType*/); com_Editor.Mask("{0,255}\\.{0,255}\\.{0,255}\\.{0,255}"); exg2antt1.Items().AddItem("1.2.3.4"); } |
426 |
How do I add a mask editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Mask")).Editor(); com_Editor = var_Editor; com_Editor.EditType(8/*MaskType*/); com_Editor.Mask("{0,255}\\.{0,255}\\.{0,255}\\.{0,255}"); exg2antt1.Items().AddItem("1.2.3.4"); } |
425 |
How to show or hide the week numbers header in a drop down date picker calendar editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Date")).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); com_Editor.Option(47/*exDateWeeksHeader*/,COMVariant::createFromBoolean(true)); exg2antt1.Items().AddItem("Today"); } |
424 |
How do I show or hide the bottom scroll bar in the drop down date picker calendar editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Date")).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); com_Editor.Option(35/*exDateShowScroll*/,COMVariant::createFromBoolean(false)); exg2antt1.Items().AddItem("Today"); } |
423 |
How do highlight the "Today" date is the drop down date picker calendar editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Date")).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); com_Editor.Option(34/*exDateMarkToday*/,COMVariant::createFromBoolean(true)); exg2antt1.Items().AddItem("Today"); } |
422 |
How do I show or hide the "Today" button is the drop down date picker calendar editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Date")).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); com_Editor.Option(33/*exDateShowTodayButton*/,COMVariant::createFromBoolean(false)); exg2antt1.Items().AddItem("Today"); } |
421 |
How to specify the first day of the week in the drop down date picker calendar editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Date")).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); com_Editor.Option(32/*exDateFirstWeekDay*/,COMVariant::createFromInt(1)); exg2antt1.Items().AddItem("Today"); } |
420 |
How to specifies the shortcut for the weekdays to be displayed in the drop down date picker calendar editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Date")).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); com_Editor.Option(31/*exDateWeekDays*/,"Du Lu Ma Mi Jo Vi Si"); exg2antt1.Items().AddItem("Today"); } |
419 |
How can I change the name of the months in the drop down date picker calendar editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Date")).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); com_Editor.Option(30/*exDateMonths*/,"Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre"); exg2antt1.Items().AddItem("Today"); } |
418 |
Can I change the "Today" caption being displayed in the drop down date picker calendar editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Date")).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); com_Editor.Option(29/*exDateTodayCaption*/,"Azi"); exg2antt1.Items().AddItem("Today"); } |
417 |
How can allow empty date to drop down date picker control or a calendar control
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Date")).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); com_Editor.Option(14/*exDateAllowNullDate*/,COMVariant::createFromBoolean(true)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromDate(str2Date("5/12/2012",213))); com_Items.AddItem(""); com_Items.AddItem(COMVariant::createFromDate(str2Date("5/14/2012",213))); } |
416 |
How can I a drop down date picker control or a calendar control
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Date"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("Today"); } |
415 |
How can I have an OR combination of my bit values, something like a check-box list editor
public void init() { COM com_Column,com_Editor,com_Items; anytype var_Column,var_Editor,var_Items; ; super(); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("CkeckList")); com_Column = var_Column; com_Column.Def(17/*exCellValueFormat*/,COMVariant::createFromInt(1)); var_Editor = com_Column.Editor(); com_Editor = var_Editor; com_Editor.EditType(6/*CheckListType*/); com_Editor.AddItem(1,"Bit <b>1</b>"); com_Editor.AddItem(2,"Bit <b>2</b>"); com_Editor.AddItem(4,"Bit <b>3</b>"); com_Editor.AddItem(8,"Bit <b>4</b>"); com_Editor.AddItem(16,"Bit <b>5</b>"); com_Editor.AddItem(32,"Bit <b>6</b>"); com_Editor.AddItem(64,"Bit <b>7</b>"); com_Editor.AddItem(128,"Bit <b>8</b>"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(112)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
414 |
How do I stop resizing the memo or a multiple lines edit control, while the user types
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; str var_s,var_s1; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(5/*MemoType*/); com_Editor.Option(3/*exMemoAutoSize*/,COMVariant::createFromBoolean(false)); com_Editor.Option(1/*exMemoHScrollBar*/,COMVariant::createFromBoolean(true)); com_Editor.Option(2/*exMemoVScrollBar*/,COMVariant::createFromBoolean(true)); var_Items = exg2antt1.Items(); com_Items = var_Items; var_s = "This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the"; var_s = var_s + " line, and get it displayed on multiple lines."; var_s1 = "This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the"; var_s1 = var_s1 + " line, and get it displayed on multiple lines."; com_Items.CellSingleLine(com_Items.AddItem(COMVariant::createFromStr(var_s)),COMVariant::createFromInt(0),false); } |
413 |
How do I add a horizontal scroll bar for a memo or a multiple lines edit control
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; str var_s,var_s1; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(5/*MemoType*/); com_Editor.Option(1/*exMemoHScrollBar*/,COMVariant::createFromBoolean(true)); var_Items = exg2antt1.Items(); com_Items = var_Items; var_s = "This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the"; var_s = var_s + " line, and get it displayed on multiple lines."; var_s1 = "This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the"; var_s1 = var_s1 + " line, and get it displayed on multiple lines."; com_Items.CellSingleLine(com_Items.AddItem(COMVariant::createFromStr(var_s)),COMVariant::createFromInt(0),false); } |
412 |
How do I add a vertical scroll bar for a memo or a multiple lines edit control
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; str var_s,var_s1; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(5/*MemoType*/); com_Editor.Option(2/*exMemoVScrollBar*/,COMVariant::createFromBoolean(true)); var_Items = exg2antt1.Items(); com_Items = var_Items; var_s = "This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the"; var_s = var_s + " line, and get it displayed on multiple lines."; var_s1 = "This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the"; var_s1 = var_s1 + " line, and get it displayed on multiple lines."; com_Items.CellSingleLine(com_Items.AddItem(COMVariant::createFromStr(var_s)),COMVariant::createFromInt(0),false); } |
411 |
How do I add a memo or a multiple lines edit control
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Edit"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(5/*MemoType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellSingleLine(com_Items.AddItem("This is a long text that should break the line, and get it displayed on multiple lines."),COMVariant::createFromInt(0),false); } |
410 |
How to specify the proposed change when the user clicks a spin control.
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(4/*SpinType*/); com_Editor.Numeric(-1/*exInteger*/); com_Editor.Option(40/*exSpinStep*/,COMVariant::createFromInt(10)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.AddItem(COMVariant::createFromInt(10)); com_Items.AddItem(COMVariant::createFromInt(20)); } |
409 |
How do I add a spin editor that allows only integer values
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(4/*SpinType*/); com_Editor.Numeric(-1/*exInteger*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
408 |
How do I add a spin editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Edit"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(4/*SpinType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
407 |
How do I specify in a drop down list editor, that I do not want to have predefined icon
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")).Editor(); com_Editor = var_Editor; com_Editor.EditType(3/*DropDownListType*/); com_Editor.AddItem(1,"The first item",COMVariant::createFromInt(1)); com_Editor.AddItem(2,"The second item",COMVariant::createFromInt(3)); com_Editor.AddItem(3,"The third item",COMVariant::createFromInt(2)); com_Editor.Option(28/*exDropDownImage*/,COMVariant::createFromBoolean(false)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
406 |
How do I add a drop down editor, that allows only predefined values
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")).Editor(); com_Editor = var_Editor; com_Editor.EditType(3/*DropDownListType*/); com_Editor.AddItem(1,"The first item",COMVariant::createFromInt(1)); com_Editor.AddItem(2,"The second item",COMVariant::createFromInt(3)); com_Editor.AddItem(3,"The third item",COMVariant::createFromInt(2)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
405 |
How to allow the editor to work on insert or overtype mode
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.Option(200/*exEditAllowOverType*/,COMVariant::createFromBoolean(true)); com_Editor.Option(201/*exEditOverType*/,COMVariant::createFromBoolean(true)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("000"); com_Items.AddItem("111"); com_Items.AddItem("222"); } |
404 |
How to set foreground color for a locked, or read only edit control
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.Locked(true); com_Editor.Option(51/*exEditLockedForeColor*/,COMVariant::createFromInt(8421504)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("000"); com_Items.AddItem("111"); com_Items.AddItem("222"); } |
403 |
How to set background color for a locked, or read only edit control
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.Locked(true); com_Editor.Option(50/*exEditLockedBackColor*/,COMVariant::createFromInt(8421504)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("000"); com_Items.AddItem("111"); com_Items.AddItem("222"); } |
402 |
How to set the number of characters selected, when an EditType editor is opened
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.Option(49/*exEditSelLength*/,COMVariant::createFromInt(1)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("000"); com_Items.AddItem("111"); com_Items.AddItem("222"); } |
401 |
How to set the starting point of text selected, when an EditType editor is opened
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.Option(48/*exEditSelStart*/,COMVariant::createFromInt(1)); com_Editor.Option(49/*exEditSelLength*/,COMVariant::createFromInt(1)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("000"); com_Items.AddItem("111"); com_Items.AddItem("222"); } |